package com.tanhua.server.utils;

import java.text.SimpleDateFormat;

/**
 * @Author: Sword Goddess
 * @Date: 2021/9/18
 * @explain:
 */
public class TimeUtils {


    /**
     * 秒转日期
     */
    public static String second(Long second) {
        if (second == -1) {
            return "该账号已永久冻结";
        }
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
        return format.format(second * 1000 + System.currentTimeMillis());
    }


}
